import pinia from "@/store";
import useUserStore from "@/store/modules/user.ts";

let userStore = useUserStore(pinia);
export default  {
    mounted(el: Element, options: any) {
        if (!userStore.roleButtons.includes(options.value)) {
            el.parentNode?.removeChild(el)
        }
    }
}
